package demo04_redbag;

import java.util.ArrayList;
import java.util.Random;

public class Member extends User{
public Member(String name,int money) {
	super(name,money);
}
public Member() {
	super();
}
public void receive(ArrayList<Integer> list){
	int index = new Random().nextInt(list.size());
	int delta=list.remove(index);
	this.setMoney(this.money+delta);
}
}
